#include <stdio.h>

// 结构体支持赋值

typedef struct _stu
{
    char name[30];
}Stu;

typedef struct _array
{
    int arr[10];
}Array ;


int *func()
{
//    int a= 100;
    static int a= 100;
    return &a;
}
int main()
{
    Stu stu1 = {"test"};
    Stu stu2;
    stu2 = stu1;

    printf("%s\n",stu2.name);

//    Array  arr = {0,1,2,3,4,5,6,7,8,9};
    Array  arr = {{0,1,2,3,4,5,6,7,8,9}};
    Array arr2;
    arr2 = arr;

    for(int i = 0; i <10; i++)
    {
        printf("%d\n",arr2.arr[i]);
    }
    return 0;
}
